cmake_minimum_required(VERSION 3.10) 
project(fiu)
set(CMAKE_TOOLCHAIN_FILE ${PROJECT_SOURCE_DIR}/toolchain.cmake)
# set(CMAKE_C_COMPILER "/usr/bin/clang")
# set(CMAKE_CXX_COMPILER "/usr/bin/clang++")
set(CMAKE_CXX_STANDARD 17)
set(CMAKE_EXPORT_COMPILE_COMMANDS ON)
set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -Wall -march=haswell")
add_subdirectory(${PROJECT_SOURCE_DIR}/src/utils)
add_executable(fiu ${PROJECT_SOURCE_DIR}/src/main.cpp)  # 添加可执行文件目标，指定主源文件路径和名称 
target_include_directories(fiu PRIVATE ${PROJECT_SOURCE_DIR}/include)  # 添加头文件路径到包含目录
target_include_directories(utils PRIVATE ${PROJECT_SOURCE_DIR}/include)  # 添加头文件路径到包含目录

target_link_libraries(fiu PRIVATE utils)